package com.kingtao.message;

import com.kingtao.entry.NodeGroup;
import lombok.Data;

/**
 * @Author: kingtao
 * @Date: 2023-08-27-15:01
 * @Description:
 */
@Data
public class ServerInitResponse extends Message {

    int leaderId;
    int secondLeaderId;
    boolean success;
    @Override
    public int getMessageType() {
        return 112;
    }

    public ServerInitResponse(int leaderId, int secondLeaderId, boolean success) {
        this.leaderId = leaderId;
        this.secondLeaderId = secondLeaderId;
        this.success = success;
    }
}
